package com.lwm.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author liweimin
 * @date 2020/12/14 15:01
 * @description 自己的负载均衡接口
 */
public interface LoadBalance {
    /**
     * 初始化server instances
     * @param serviceInstances
     * @return
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstances);
}
